﻿<script type="text/template" id="list-position-item-template">
    <td class="text-center">
        <%= model.Order %>
    </td>
    <td>
        <%= model.Name %>
    </td>
    <td>
        <%= model.Description %>
    </td>
    <td>
       <input type="checkbox"  <%= model.IsActive == true ? 'checked="checked"' : '' %> name = "IsActive" class="cbxIsActive" />
    </td>
    <td>
        <%= model.CreatedAt %>
    </td>
    <td>
         <a href="#" class="grid-update"><%= jsResources.lang.GridEdit %></a>               
    </td>
    <td>
         <a href="#" class="grid-delete"><%= jsResources.lang.GridDelete %></a>
    </td>
</script>
<script type="text/template" id="position-form-template">
<article>    
    <form id="position-form" onsubmit="return false;">
        <ul class="idata-form">
            <li>
                <label for="name">Tên vị trí:</label>
                 <input class="name" type="text" size="40" name="Name" id="Name" required value="<%= model.Name %>"> 
            </li>
            <li>
                 <label for="description">Mô tả:</label>
                 <textarea class="description" size="40" name="Description" id="Description" required value="<%= model.Description %>" ></textarea> 
            </li>
            <li>
                <label>Phê duyệt</label>
                <input type="checkbox" name = "IsActive" id="IsActive" <%= model.IsActive == true ? 'checked="checked"' : '' %> />
            </li>
            <li>
                <button type="submit" class="action" value = "<%= model.Id == 0 ? "Tạo mới" : "Cập nhập" %>" id="submit">Thực hiện</button>
                  <button type="reset" class="right">Làm lại</button>
            </li>
        </ul>
    </form>
</article>
</script>
